<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
   <div @click.capture="parent">
       parent
       <div @click="son">
           son
           <div @click.once.stop="grandson">
               grandson
           </div>
       </div>

   </div>
    <a href="http://www.baidu.com" @click.prevent="parent">baidu</a>




</div>

</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
   let vm =  new Vue({
        el: '#app',
        methods:{
            parent(){
                alert('parent')
            },
            son(){
                alert('son')
            },
            grandson(){
                alert('grandson')
            }

        }
    })


</script>
</html>